package com.testlio.assignment.dto;

import lombok.Builder;
import lombok.Data;
import java.util.List;
import java.util.Map;

@Data
@Builder
public class IssueComparisonDTO {
    private Map<String, Object> before;
    private Map<String, Object> after;
    private Map<String, ChangedValue> changes;
    private List<IssueRevisionDTO> revisions;

    @Data
    public static class ChangedValue {
        private Object oldValue;
        private Object newValue;

        public ChangedValue(Object oldValue, Object newValue) {
            this.oldValue = oldValue;
            this.newValue = newValue;
        }
    }
}